/* @file acl_ge_stub.cpp
 *
 * Copyright (c) Huawei Technologies Co., Ltd. 2023. All Rights reserved.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 */
#include "acl_ge_stub.h"
#include "framework/executor_c/ge_executor.h"
#include "vector.h"

MockFunctionTest &MockFunctionTest::aclStubInstance() {
  static MockFunctionTest stub;
  return stub;
};

Status GetModelDescInfo(uint32_t modelId, ModelInOutInfo *info) {
  return MockFunctionTest::aclStubInstance().GetModelDescInfo(modelId, info);
}

Status GetModelDescInfoFromMem(const ModelData *modelData,
                               ModelInOutInfo *info) {
  return MockFunctionTest::aclStubInstance().GetModelDescInfoFromMem(modelData,
                                                                     info);
}

Status LoadDataFromFile(const char *modelPath, ModelData *data) {
  return MockFunctionTest::aclStubInstance().LoadDataFromFile(modelPath, data);
}

void FreeModelData(ModelData *data) {
  (void)data;
  return;
}

void DestoryModelInOutInfo(ModelInOutInfo *info) {
  DeInitVector(&info->input_desc);
  DeInitVector(&info->output_desc);
  return;
}